/******************************************************************************
@file:  HealthTabHome.java
@author Ramesh Anandhan

DESCRIPTION
-----------------------------------------------------------------------------
Copyright (c) 2011, GEEKWAVE SOLUTIONS INC.

All rights reserved.
******************************************************************************/

package com.smartc.health;

import com.smartc.ui.R;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.widget.TabHost;

public class HealthTabHome extends TabActivity {
	private TabHost mTabHost;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.health_tab_home);
		mTabHost = getTabHost();

		setDocterVisitTab();
		setYogaRegisterTab();
		setGymRegisterTab();
		setBloodRequirmentTab();
	}
	
	

	private void setBloodRequirmentTab() {
		Intent intent = new Intent();
		intent.setClass(this, BloodRequirment.class);

		mTabHost.addTab(mTabHost.newTabSpec("blood_req").setIndicator(
				"Blood requirment", getResources().getDrawable(R.drawable.blood))
				.setContent(intent));
	}

	private void setGymRegisterTab() {
		Intent intent = new Intent();
		intent.setClass(this, GymRegistration.class);

		mTabHost.addTab(mTabHost.newTabSpec("gym_reg").setIndicator(
				"Gym Registration", getResources().getDrawable(R.drawable.gym))
				.setContent(intent));
	}

	private void setDocterVisitTab() {
		Intent intent = new Intent();
		intent.setClass(this, DoctorsVisit.class);
		mTabHost.addTab(mTabHost.newTabSpec("docter_visit").setIndicator(
				"Doctors visit", getResources().getDrawable(R.drawable.physician))
				.setContent(intent));
	}

	private void setYogaRegisterTab() {
		Intent intent = new Intent();
		intent.setClass(this, YogaRegistration.class);

		mTabHost.addTab(mTabHost.newTabSpec("yoga_reg").setIndicator(
				"Yoga Registration", getResources().getDrawable(R.drawable.yoga_pose))
				.setContent(intent));
	}
}
